#ifndef __BSP_SPEED_H
#define __BSP_SPEED_H

#include "ch32f10x.h"
#include "debug.h"
#include "variable.h"



#define SPEED_DIR_RCC				RCC_APB2Periph_GPIOA
#define SPEED_DIR_PORT  		    GPIOA
#define SPEED_DIR_PIN				GPIO_Pin_1

#define SPEED_DIR   GPIO_ReadInputDataBit(SPEED_DIR_PORT, SPEED_DIR_PIN)


void SPEED_Init(void);

#endif

